package com.emmy.walnut.constant;

import android.content.Context;

import com.emmy.walnut.model.Label;
import com.emmy.walnut.model.Record;
import com.emmy.walnut.model.TimingObject;

import java.io.File;
import java.util.ArrayList;

public class AppConstant {

    public static String username = "";

    public static String avatar_path = "https://gitee.com/cat02/FigureBed/raw/master/img/avatar.jpg";

    public static boolean isLogin = false;

    public static final String MEDIA_JSON_TYPE = "application/json";

    public static final String SALT_VALUE = "walnut_auth";


    /**
     * Preference文件名
     */
    public static String PRE_FILE_NAME = "config";

    public static Context APPLICATION_CONTEXT;

    public static ArrayList<Label> activities;
    public static ArrayList<Record> undoneRecords;

    /**
     * 登录注册状态码
     * */
    public static final int REG_SUCESS = 1001;
    public static final int REG_FAIL = 1002;
    public static final int LOGIN_SUCESS  = 1003;
    public static final int LOGIN_FAIL = 1004;

    /**
     * 业务逻辑相关状态码
     * */
    public static final int START_RECORD = 2001;
    public static final int END_RECORD = 2002;
    public static final int GET_PEROID_RECORD = 2003;
    public static final int DUPLICATE_LABEL= 2004;
    public static final int ADD_LABEL_SUSCESS= 2005;
    public static final int EXPORT_RECORD= 2006;

    /**
     * 数据获取类型状态码
     * */
    public static final int YEAR= 0;
    public static final int MONTH= 1;
    public static final int WEEK = 2;
    public static final int DAY = 3;

    public static String[] month = {"1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月",
            "9月", "10月", "11月", "12月"};

    public static String[] week= {"星期一", "星期二", "星期三",
            "星期四", "星期五", "星期六", "星期天"};
}
